package com.siyue.util;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RestResponse<T> {
    private String status;
    private String message;
    private T data;

    public RestResponse(String status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public RestResponse(String status, String message) {
        this.status = status;
        this.message = message;
    }

    public RestResponse(String status, T data) {
        this.status = status;
        this.data = data;
    }

    public RestResponse() {
    }
}

